saveUser
If the user is being created, creates a new user and when successful:
viewmodel.saveUser(ev)
If the user is being created, creates a new user and when successful:
Parameters
-
ev
{*}
Returns
{Promise}
A promise that allows the component to display errors, if any.
If the user's password is being updated, updates the password and when successful, clears the form.